import request from '@/utils/request'

// 创建帖子区域
export function createDataInfotwo(data) {
  return request({
    url: '/system/data-infotwo/create',
    method: 'post',
    data: data
  })
}

// 更新帖子区域
export function updateDataInfotwo(data) {
  return request({
    url: '/system/data-infotwo/update',
    method: 'put',
    data: data
  })
}

// 删除帖子区域
export function deleteDataInfotwo(id) {
  return request({
    url: '/system/data-infotwo/delete?id=' + id,
    method: 'delete'
  })
}

// 获得帖子区域
export function getDataInfotwo(id) {
  return request({
    url: '/system/data-infotwo/get?id=' + id,
    method: 'get'
  })
}

// 获得帖子区域分页
export function getDataInfotwoPage(params) {
  return request({
    url: '/system/data-infotwo/page',
    method: 'get',
    params
  })
}
// 导出帖子区域 Excel
export function exportDataInfotwoExcel(params) {
  return request({
    url: '/system/data-infotwo/export-excel',
    method: 'get',
    params,
    responseType: 'blob'
  })
}